#!/usr/bin/env bash
# Author: Jordan Rupprecht

EXEC="ssh -i pig_rsa $1@$2 'ls pig-$3/done' 2> /dev/null"
if [ -n "`eval $EXEC`" ]; then
echo 1
else
echo 0
fi
